package cn.wolfcode.luowowo.article.service;

import cn.wolfcode.luowowo.article.domain.TravelCommend;
import cn.wolfcode.luowowo.article.query.TravelCommendQuery;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ITravelCommendService {

    PageInfo query(TravelCommendQuery qo);

    /**
     * 游记推荐保存和更新
     * @param travelCommend
     */
    void saveOrUpdate(TravelCommend travelCommend);

    /**
     * 游记推荐删除
     * @param id
     */
    void delete(Long id);

    /**
     * 查询游记推荐里的前五个展示在游记主页
     * @return
     */
    List<TravelCommend> getTop5();

}
